import 'package:flutter/material.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBImageStyle/YBImageStyle.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBTextStyle/YBTextStyle.dart';

class YBWangGeYuanSubPage extends StatelessWidget {
  final String imageStr;
  final String titleStr;
  final String subTitleStr;

  const YBWangGeYuanSubPage({Key key, this.imageStr, this.titleStr, this.subTitleStr}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
        height: YBTextStyle.adapterSize94,
        child: Column(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: [
            Container(
              child: Image.asset(YBImageStyle.getImagePath(imageStr),height: YBTextStyle.adapterSize40,width: YBTextStyle.adapterSize40,),
            ),
            Container(
              child: Text(titleStr,style: YBTextStyle.xieGangQingNianGongzuoRenWuText),
            ),
            Container(
              child: Text(subTitleStr,style: YBTextStyle.xieGangQingNianFuBiaoTiText,),
            ),
          ],
        ),
    );
  }
}
